<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1>当前显示的视图文件是show.blade.php</h1>
    <p>现在是:{{$date}},今天是星期{{$day}}</p>
    <h4>一年之后的时间是:{{date('Y-m-d H:i:s',$time)}}</h4>
    <br>
    <h4>循环操作</h4>
    @foreach($arr as $v)
{{--        {{$v}}<br>--}}
{{--        <p>条件判断</p>--}}
        @if($v === '星期3')
            <p>星期三</p>
        @elseif($v === '4')
            <span>星期4</span>
        @else
            <p>匹配不上就算了</p>
        @endif
    @endforeach

</body>
</html>
